package com.day0424;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/25   10:55
 * @Description描述
 **/


public enum Color {
    red("红色"), green("绿色"), blue("蓝色");


    private String desc;

    private Color(String desc) {
        this.desc = desc;
    }

    public String getDesc() {
        return desc;
    }

    public static void main(String[] args) {
        for (Color color : Color.values()) {
            System.out.println("color:" + color.name()
                    + "，中文描述：" + color.getDesc());
        }
    }

}


